﻿//for show tools
$(document).ready(function() {
	$("#topheader").fadeIn("fast");
	initStyle();
	$("#search_lens").click(function(){ $('#search_form').submit(); });
});
function initStyle(){
	var w = 728;
	if(window.innerWidth){
		var winWidth=window.innerWidth;
		w = winWidth > 728 ? winWidth : 728;
	} else if( (document.body)&&(document.body.clientWidth) ){
		winWidth = document.body.clientWidth;
		w = winWidth > 728 ? winWidth : 728;
	}
	$("#topheader").css( "width",w );
}
$(window).bind('resize', initStyle);